
#ifndef _PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_ENTER_REQ_H_
#define _PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_ENTER_REQ_H_

#include "../../engine.h"
#include "../../User.h"
#include "../../NLogic/Static.h"

namespace ProjectZ { namespace NCommand { namespace NMatching {

class CS_DUNGEON_ENTER_REQ
{
public:
	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
	{
		STRESSLOG("CS_DUNGEON_ENTER_REQ");

		NLogic::Space * pSpace = pUser->GetSpace();
		if (NULL == pSpace)
		{
			DEBUGLOG("CS_DUNGEON_ENTER_REQ NULL == pSpace");
			return;
		}

		PREPARE_PACKET;

		int exit_map_id = 0;
		int x = 0;
		int y = 0;
		int degree = 0;
		pPacket->ParseMsg("%2d%2d%2d%2d", &exit_map_id, &x, &y, &degree);

		::Network::Packet * pNoti = ::Network::GETPACKETPOOL()->SEND_NEW();
		pNoti->MsgCat("%2d%2d%2d%2d", exit_map_id, x, y, degree);
		pNoti->MakePacket(CMD_SN_DUNGEON_ENTER_REQ);
		pSpace->SendAll(pNoti);
	}
};

} /*NMatching*/ } /*NCommand*/ } /*ProjectZ*/


#endif /* _PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_ENTER_REQ_H_ */
